View Javadoc
1 package jrre.classloader.classfile.attributes; 2 3 public class SourceFileAttribute extends Attribute { 4 5 protected int nameIndex; 6 protected int attributeLength; 7 protected int sourceFileIndex; 8 9 public SourceFileAttribute(){} 10 11 public SourceFileAttribute(int nameIndex, int attributeLength, int sourceFileIndex){ 12 this.nameIndex = nameIndex; 13 this.attributeLength = attributeLength; 14 this.sourceFileIndex = sourceFileIndex; 15 } 16 17 public String toString(){ 18 StringBuffer toReturn = new StringBuffer(); 19 toReturn.append("Source File Attribute:"); 20 toReturn.append("\n\tName Index: "+nameIndex); 21 toReturn.append("\n\tAttribute Length: "+attributeLength); 22 toReturn.append("\n\tSource File Index: "+sourceFileIndex); 23 return toReturn.toString(); 24 } 25 }

This page was automatically generated by Maven